<!doctype html>
<html lang="en">

	<head>
		<meta charset="UTF-8" />
		<title>Document</title>
	</head>

	<body>

	</body>
	<script type="text/javascript">
		function  F(name) {    
			this.name  =  name;  
		}   
		F.name  =  "小明";  
		F.prototype.name  =  "小红";   
		var  obj  =  new  F();  
		console.log( obj.name );
	</script>

</html>